﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Collections;

namespace AGRTraining.za.co.agrtraining.repository
{
    interface IDAO<T>
    {
        void persist(T entity);

        void remove(T entity);

        void removeById(string code);

        void merge(T entity);

        T findById(string code);

        IEnumerable<T> findAll();

        IEnumerable<T> findInRange(int firstResult, int maxResuslts);

        long count();

        void commit();
    }
}